package com.xqls.server.dto.send;

import com.xqls.server.dto.SoketCommonDto;
import com.xqls.server.netty.DecoderUtil;
import io.netty.buffer.ByteBuf;

/**
 * 阀门控制仪开关阀
 */
public class SwitchValveDto extends SoketCommonDto {

    private Integer angle;//阀门角度

    public Integer getAngle() {
        return angle;
    }

    public String getCode(){
        return  "ea";
    }
    public Integer getLength(){
        return 5;
    }

    public void setAngle(Integer angle) {
        this.angle = angle;
    }

    public void encode( ByteBuf byteBuf){
        byteBuf.writeByte(this.getAngle());
        super.encode(byteBuf);
    }

}
